package com.geper.pattern.decorator;

import java.util.List;

/**
 * @author: lsy
 * @date: 2020-03-06 15:20
 * @description: NavigationDecorator
 */
public abstract class NavigationDecorator extends Navigation{

    private Navigation navigation;

    public NavigationDecorator(Navigation navigation){
        this.navigation = navigation;
    }
    @Override
    protected List<String> menus(){
        return this.navigation.menus();
    }
}
